package com.liuzihao.cloudLzhGateway.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: Liuzihao
 * @Description:
 * @Date Created in 2022-02-20 16:58
 * @Modified By:
 */
@RestController
@RefreshScope//用于手动刷新中心配置
public class GetConfigController
{
    @Value("${config.info}")
    String info;

    @GetMapping("getInfo")
    String getInfo(){
        return info;
    }
}
